//
//  CCQTextField.swift
//  NEWweibo
//
//  Created by 神威 on 16/9/19.
//  Copyright © 2016年 ccq. All rights reserved.
//

import UIKit

//动态显示修改后的效果
@IBDesignable
class CCQTextField: UITextField {

    
    //给xib视图增加属性
    @IBInspectable var borderWidth:CGFloat = 0{
        didSet{
            self.layer.borderWidth = borderWidth
        }
    }
    
    //边框的颜色
    @IBInspectable var borderColor:UIColor?{
        didSet{
            self.layer.borderColor = borderColor?.cgColor
        }
    }
    
    //边角的弧度
    
    @IBInspectable var cornerRadius:CGFloat = 0{
        didSet{
            self.layer.cornerRadius = cornerRadius
            self.layer.masksToBounds = true
        }
    }


}
